package d.j;

import d.h.b.c;
import java.util.Iterator;

public final class h<T, R> implements a<R> {
    /* access modifiers changed from: private */

    /* renamed from: a  reason: collision with root package name */
    public final a<T> f2707a;
    /* access modifiers changed from: private */

    /* renamed from: b  reason: collision with root package name */
    public final d.h.a.a<T, R> f2708b;

    public static final class a implements Iterator<R> {

        /* renamed from: b  reason: collision with root package name */
        private final Iterator<T> f2709b;

        /* renamed from: c  reason: collision with root package name */
        final /* synthetic */ h f2710c;

        a(h hVar) {
            this.f2710c = hVar;
            this.f2709b = hVar.f2707a.iterator();
        }

        public boolean hasNext() {
            return this.f2709b.hasNext();
        }

        public R next() {
            return this.f2710c.f2708b.b(this.f2709b.next());
        }

        public void remove() {
            throw new UnsupportedOperationException("Operation is not supported for read-only collection");
        }
    }

    public h(a<? extends T> aVar, d.h.a.a<? super T, ? extends R> aVar2) {
        c.c(aVar, "sequence");
        c.c(aVar2, "transformer");
        this.f2707a = aVar;
        this.f2708b = aVar2;
    }

    public Iterator<R> iterator() {
        return new a(this);
    }
}
